package com.it.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.common.domain.dos.ArticleContentDO;

/**
 * @author yu
 * @date 2025/01/08
 */

public interface ArticleContentMapper extends BaseMapper<ArticleContentDO> {

    int deleteByArticleId(Long articleId);


    /**
     * 根据文章 ID 查询
     * @param articleId
     * @return {@link ArticleContentDO }
     */
    ArticleContentDO selectByArticleId(Long articleId);

    /**
     * 通过文章 ID 更新
     * @param articleContentDO
     */
    int updateByArticleId(ArticleContentDO articleContentDO);
}
